﻿using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using System.Collections.Generic;

namespace AssetManageSystem.Model.AssetManage
{
    /// <summary>
    /// 资产捐赠
    /// </summary>
    public class AssetDonation : PersistPoco
    {
        [Display(Name = "单据编号")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string DocNumber { get; set; }

        [Display(Name = "受捐人")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string Name { get; set; }

        [Display(Name = "受捐单位")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string Unit { get; set; }

        [Display(Name = "捐赠日期")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public DateTime? OutDate { get; set; }

        public List<AssetInfo> AssetInfos { get; set; }
        public List<AssetDonationMiddleTable> AssetId { get; set; }

    }
}
